package com.hzit.controller;


import com.hzit.service.ICategoryKindService;
import com.hzit.utils.R;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author author
 * @since 2024-08-31
 */
@RestController
@RequestMapping("/admin/category-kind")
@Api("广告类型查询")
public class CategoryKindController {
    @Autowired
    private ICategoryKindService categoryKindService;

    @GetMapping("list")
    @ApiOperation("查询列表")
    public R list(){
        return R.ok().data("list",categoryKindService.list());
    }

}
